home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
source
/
swagd-f
/
exec.swg
/
0027_Easy Prompt Changing in Shells.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1995-03-03
|
375 b
|
23 lines
{
That won't work, actually. He wants to change the _prompt_ in his
shell. Here's one way:
}
{$m 4096,0,0}
uses
dos;
var
f : text;
begin
assign(f,'chgprmpt.bat');
rewrite(f);
writeln(f,'@set prompt=Type EXIT to return to '+paramstr(0)+'$g');
close(f);
swapvectors;
exec(getenv('COMSPEC'),'/K chgprmpt.bat');
swapvectors;
end.